package com.ccy.xxljobdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@RestController
@RequestMapping("/ccy")
public class JobController {

    @GetMapping("/test")
    public String test(){
        System.out.println("测试任务执行了" + LocalDateTime.now());
        return "ok";
    }
}
